<div id="meeting_places">
  <%@meeting_places.each do |meeting_place|%>
    <%=render :partial=>'meeting_place',:locals=>{:meeting_place=>meeting_place}%>
  <%end%>
</div>
<br/>
<div style="float:right">
  <a href="#" onclick="Element.toggle('new_meeting_place_form');return false">添加会场</a>  |
  <%=link_to "返回",event_path(:id=>@event.id)%>
</div>
<br />
<div id="new_meeting_place_form" style='display:none'>
    <%remote_form_for :meeting_place,:url=>{:controller=>'meeting_places',:action=>'create',:event_id=>@event.id},:html=>{:id=>'meeting_place_form'} do |f|%>
        <div id="errors" style="display:none">
        </div>
        <br/>
        <div class="fields text_fields">
          <%= f.label :name,"会场名称" %><%= f.text_field :name %><br clear="all"/>
        </div>
        <%fields_for "rows_cols" do |c_f|%>
          <div class="fields select_fields">
            <%= c_f.label :rows,'排数:' %><%= c_f.select(:rows,(1..50)) %><br clear="all"/>
          </div>
          <div class="fields select_fields">
            <%= c_f.label :cols,'列数:' %><%= c_f.select(:cols,(1..30))%><br clear="all"/>
          </div>
        <%end%>
        <div class="buttons">
        <div class="lt_button">
          <%= f.submit '创建会场信息',:class=>'submit'%>
        </div>
      </div>
    <%end%>
  </div>
